package cn.kbyue.openfeign.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author xlang
 * @version 0.0.1
 * @date 2021/8/5 11:20
 */
// @Component 自定义 configuration 类时添加
@FeignClient(name = "server-center", fallback = ProductFallback.class)
public interface ProductFeignClient {

    @GetMapping("product")
    String get();

}
